package com.zhang.cn.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@EnableAutoConfiguration
@RestController
public class HelloWorldcontroller {
	@RequestMapping("/index")
	public String index() {
		return "success";
	}	
	@RequestMapping("/getMap")
	public Map<String, Object> getMap() {
		Map<String, Object> map=new HashMap<String, Object>();
		map.put("errorcode", "200");
		map.put("Errormsg", "成功...");
		return map;
	}	
//	public static void main(String[] args) {
//		SpringApplication.run(HelloWorldcontroller.class, args);
//	}
}
